<?php
class Block_Core_Grid_Sidebar_Search
    extends Block_Core_List
{
    protected $_button = array();

    protected $_jsName;

    public function __construct()
    {
        parent::__construct();
        $this->setTemplate('grid/sidebar/search.phtml');
        $this->_prepareBlock();
    }

    protected function _prepareBlock()
    {
        return $this;
    }

    public function addButton($key, Object $params)
    {
        $this->_button[$key] = $params;
        return $this;
    }

    public function getButton()
    {
        return $this->_button;
    }

    public function setJsName($name)
    {
        $this->_jsName = $name;
        return $this;
    }

    public function getJsName()
    {
        return $this->_jsName;
    }
}